<div id="content">       

    <? if($this->input->post("submit_action") !== FALSE){ ?>
        <div class="response"><?=validation_errors()?></div>                
    <? } ?>

    <div class="content_block">
        <h1>Edit user profile</h1>
    </div>

    <form action="" method="post">

    <div class="content_block" style="margin-bottom:10px">
        <h4 style="width:120px; float:left">Username</h4>
        <input style="width:200px" name="username" type="text" class="text_input" maxlength="36" value="<?=set_value('username', $item['Username'])?>" />
    </div>

    <div class="content_block" style="margin-bottom:10px">
        <h4 style="width:120px; float:left">New Password</h4>
        <input style="width:200px" name="password" type="text" class="text_input" maxlength="36" value="<?=set_value('password')?>" />
    </div>

    <div class="content_block">
        <h4 style="width:120px; float:left">Type</h4>
        <?=$item['Name_Roles']?>
        <input type="hidden" name="role" value="<?=$item['Role']?>"
    </div>
         
    <div class="content_block">
        <a href="<?=site_url('admin/home')?>" class="button">CANCEL</a>
        <input type="hidden" name="token" value="<?=$token?>" />

        <? if ($action!="create") { ?>
        <input type="hidden" name="id" value="<?=$item['id']?>" />
        <? } ?>
        <input type="hidden" name="submit_action" value="<?=$action?>" />
        <input type="submit" class="button" value="SAVE" />
    </div>

    </form>

</div>